import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
// import { PaidOrder } from "./paid.entity";
// import { PartnerInfo } from "./partnerInfo.entity";

@Entity()
export class UserPartner{
    @PrimaryGeneratedColumn({type:'int',name:'id',comment:"用户自增id"})
    id:number;

    @Column('varchar',{length:12})
    userid:number;

    @Column({type:'int',comment:"添加购买时间"})
    addtime:number;

    @Column({type:'int',comment:"参与项目的状态"})
    status:number;
        // @OneToOne(type=>PaidOrder)
        // @JoinColumn()
    @Column({type:'int',comment:"付款id"})
    paidId:number;

    // @OneToOne(type=>PartnerInfo)
    // @JoinColumn()
    @Column({type:'int',comment:"项目Id"})
    partnerId:number;

    @Column({type:'int',comment:"附加数据(已对象id 为数据内容)"})
    appendData:number;

    @Column({type:"int",comment:"附加数据类型"})
    appendType:number;
}